<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="liYunLong">你真是个天才！</div>
</body>

</html>
<script>
    var liYunLong = document.querySelector('#liYunLong')

    var tools = ({
        fun1: function fun1() {
            liYunLong.style.color = "gold"
            return this
        },
        fun2: function fun2() {
            liYunLong.style.fontSize = "30px"
            return this
        },
        fun3: function fun3() {
            liYunLong.onclick = function () {
                alert('你呀，总能给我整点儿花样')
            }
            return this
        },
    })
    tools.fun1(liYunLong.style.color = "gold").fun2(liYunLong.style.fontSize = "30px").fun3(alert('你呀，总能给我整点儿花样'))

    // tools.$('#liYunLong').setColor(red).setFontSIze('30').click('你呀，总能给我整点儿花样')
</script>